rust-mp4ameta
A library for reading and writing iTunes style MPEG-4 audio metadata.
Most commonly this kind of metadata is found inside m4a
or m4b
files but basically any mp4
container supports it.
Examples
The easy way
let mut tag = read_from_path.unwrap;
println!;
tag.set_artist;
tag.write_to_path.unwrap;
The hard way
use ;
let mut tag = read_from_path.unwrap;
let artist_ident = Fourcc;
let artist = tag.string.next.unwrap;
println!;
tag.set_data;
tag.write_to_path.unwrap;
Using freeform identifiers
use ;
let mut tag = read_from_path.unwrap;
let isrc_ident = new;
let isrc = tag.string.next.unwrap;
println!;
tag.set_data;
tag.write_to_path.unwrap;
Useful Links
- QuickTime spec
- MultimediaWiki QuickTime container
- AtomicParsley docs
- Mutagen docs
- Hydrogen audio tag mapping
- MusicBrainz Picard tag mapping
- Filetype list
Testing
__Run all tests:__
cargo test
__Test this library on your collection:__
cargo test -- --nocapture collection <path>